i think i fixed that crashing bug

added a null check in teleporting monster