Raise explicit error for 0 results avoiding ogr2ogr crash fixing #1268