Warheads that are on a docked entity, won't blow up when they physically touch something. Manually detonating them by hand or through logic still works.
How to reproduce:
# dock a shipcore to another ship
# put a warhead on that docked ship core and ram something (asteroid)