Fixed null-pointer exception when in menu, where player does not exist