Fixed JS error when user has a location set but it's empty