Fixing Crashes

- Added extra NPE check for Maps feature
- Changed logic to how the application context is stored and the route data is stored because: when the application process has been cleaned up, a new application context is assigned.