Fix invalid foreach warning in player view when no players found.