[minor] return login page if no app or no home page in app
[minor] [js] no notification count if no module doctypes