Fixed nullpointer occuring when player logs in while dead