Fixed a bug where the location tracker would stop working due to an uncaught exception