Fix definitions for stations with shared entry ports

Fixes #1931.

When testing, note that the bug only occurs if there is already a ship docked in the station, because otherwise you will be assigned port zero, which passes the port check in `SpaceStation::OnCollision` (the shared entry port collision geometry is for port zero).