Fixes an issue that can cause the userLocation to get stuck on the screen when it should not be visible