Fixed error where homepage would break if not logged in