When I put ships in deployment, the mouseover lists the same ship name of all of them. You can see both ships are shown as MslDef1, but they clearly have different modules on them.
I believe in that first shot you may still be within the bounds of the top ship. Note that it’s giving you the name of only one of them (as well as the type). The shield bubble is considered to be part of the ship’s area IIRC, which means it extends out from the hull slightly. You’re basically seeing a random result of whichever one is top in the Z order (or just whichever is hit-tested first).