fixed handling of player with no inventory