Make SiteTree reference conditional in InitProcessor

This makes the boilerplate code compatible for testing framework-only sites.