The issue is that ships can be in 2 sectors at once, the docked entities that are not in the same sector as the main ship core have a **chance** to end up docked, in the wrong sector. Causing them to be non physical yet they still are attached to the main ship just in the wrong sector.
We had this issue when trying to dock to something in a different sector than you were originally, that is fixed now yet the stuff mentioned before still happens unfortunately.
**There is however a behavior chance.** If this happens, and then you make the main ship cross a sector, those misaligned entities become aligned again to the main ship and everything is fine. So perhaps this check isn't called immediately after loading and only on sector changes after that?