Fixed null pointer exception when player logs in without having any
managed entities.