Fix bug #10195: Offset line symbology added to polygon layer leads to crash

This PR attemps to fix the bug 10195 ( http://hub.qgis.org/issues/10195 ) using GEOSBuffer in offsetline when the geometry is a polygon.