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

@rafatower CR, please. I'm not a huge fan of raising an error because of no results, but that kind of metadata is lost, it would require a much bigger refactor. Without this, ogr2ogr crashes with a dump, I think this is much cleaner and not bad.