Error 500 when visit probile mobile and logged out. Fix #4458

#4458