don't throw for OGR layers with no features - refs #2260 #2352 #2354

Conflicts:
	tests/python_tests/ogr_test.py