Adding null checks to avoid console errors when not visiting herald site.