Correct invalid calls to GEOSSetSRID when geometry is null