[GEOS-5962] Log error when skipping faulty layers or layer groups during caps document generation