Fixed a error caused by AnonymousUser viewing the project detail page