Fixed uncaught javascript error when no players are defined