Made SiteTemplate importing more robust.