NullPointerException fix

Added != null when player walks throughthe teleporter.