Fix for U4-3908 YSOD on frontend after being logged out