Error fix

Fixed an error caused by the player being killed by a NPE (non-player
entity)