Fixed a bug with anonymous user causing error when viewing issue.