Remove maintenance if query from header

throws an undefined variable
fix betterBreadcrumbs undefined vars