As I understand it, it detects that it's on AC when the sensor contact and the central contact are touching. While I'll agree that that exact thing is unlikely to be the case with the connector inserted, there could be a short elsewhere nearby. Unless the sensor contact is also the power contact.
_________________________
Bitt Faulk