tm2 no longer works offline

...after adding OAuth authorization with Mapbox.

This patch prevents an app crash in favor of displaying the error message, but the app remains non-functional when offline.

I'm not sure what the more general fix should look like.