Fix exception when pMetaProp is NULL.