do not crash when having multiple sites
Merge pull request #32 from gradinarufelix/BUGFIX/parent-null-bug BUGFIX: Prevent loop execution on ->getParent() is null
Merge pull request #32 from gradinarufelix/BUGFIX/parent-null-bug BUGFIX: Prevent loop execution on ->getParent() is null