Fixed the exception that arises due to removal of map container when location information is unavailable