MDL-44749 atto_collapse: Skip button inclusion if it will impact UX

Do not show the collapse button if:
* it's specified after the cut-off and would therefore be unusable; or
* the total number of groups matches the number of groups to display anyway.