added a check so it wont' crash if we can't get a valid location.