Sometimes when your survey ship tries to grab an anomaly that is protect by pirates the warning prompt stating that fact does not show up. This means that you do not have the choice to withdraw and combat ensues whether you want it or not.
In all cases that the warning didn't show, i won without taking any damage. So i did not lose any ships, but it is a bug never the less.