Minor improvement to KML and CZML error handling.