added check for empty hosts when rendering location overlay