Updates #23480 - added filtering to ensure that help and setting links don't show if the tabs are turned off.

Note that in doing this I see that the general architecture for tabs is totally wonky and makes it quite difficult to do things like know if the only tab visible is 'help'. Sigh.