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

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