Fix segfault in ms_newMapObjFromString (PHP/MapScript)