Similar Items: Robust Beamforming for ISAC Systems via Probability of Detection Optimisation