Fixed crashes

Fixed crash when trying to move a character that had died, and fixed
trying to delete a property of an undefined object within catch
statements for character movement.