Make SiteTree reference conditional

This makes the boilerplate code compatible for testing
framework-only sites.
Merge pull request #58 from oddnoc/safe-sitetree

Make SiteTree reference conditional in InitProcessor