Remove useless tests: if geom is non NULL, it cannot be wkbNone or wkbUnknown (those are only returned for layer geometry types)