BUGFIX: check if SiteTree before running controller_for
BUGFIX: check if SiteTree before running controller_for

silverstripe/silverstripe-globaltoolbar,silverstripe/silverstripe-globaltoolbar,silverstripe/silverstripe-globaltoolbar,silverstripe/silverstripe-globaltoolbar