The logic for showing/hiding the 'Show x more' control for messages made
some invalid assumptions, specifically regarding the content of the
_visibleMessages array.
This change adds a new function, _getHumanMessages, that is utilized in
the affected functions to prune the array down to its proper contents to
make the calculations about whether the control should be hidden and
what its labels should say much easier.
Bug: Issue 5749
Change-Id: I465fbff9c8deab0e2357461aa9bdf37e0e6a8299