Fix issue MetaModels/core/issues/482.

In non hierarchical and non parented mode a non existant parent was
being searched.