protect restorePlayer() call from undefined playersData