Fixes a null check in UmbracoTemplatePage