fixing compatibility with SiteTree

fixing compatibility with SiteTree::canCreate() & SiteTree::canDelete()