Crude optimization of the bounding box query.
Fixed bug where mappings were found but the required scale could not be calculated because no data was found.