Fixes ghosts teleporting using corporeal portals

Fixes #6068