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

Fix #4458