Fixed error when view diagnostics when not logged in