Fixes bug on device when removing the listener from locationListeners using locationListeners.clear() instead of removing one by one.