Fix nullpointers

This is a series of fixes that catch or void null pointer exceptions that occure when the device has doesn't know it's position or isn't connected to the internet.