Prevents crash in hierarchy tree generator if an empty collection is parsed.