[1.7.x] Fixed #23085: Better error message for PostGIS 1.5/bad custom fields