[ticket/12662] Hide quick-links when empty

Also some noJS fixes

PHPBB3-12662