Fix rectObj->draw fails to render text in php/mapscript (#4577)