Fixed the lastKnownLocation checking for nullity