Fix IllegalStateException when restartLocationClient is called from onResume()