Fix a bug in the positions given by the webserver

- The webserver was sending the empty gps positions to the global map.
Fix a bug in the JavaScript map code

- Fix a bug in the all devices map and the map of all the positions of
  a selected device.