Fix crash teleporting when target teleport pad destroyed. Fixes #825.