Fix potential infinite recursion in ActionTeleport (Fixes #1840)