Fixed an error that caused a crash when location was not known.