Fix not-logged-in bug in ejs renderer