[FIX] SwitchLang block when there is no detail document.
[FIX #649] Do not show unpublished documents in menus.