ogr plugin extent error handling

Added exception in OGR plugin for case when OGR layer does not have an extent and no custom extent is provided via the <extent> parameter.  
probably more future proof to do:

```cpp
if (e != OGRERR_NONE)
```

What do you think?