Fixed #23085: Better error message for PostGIS 1.5/bad custom fields