message view / list: fix NPE when list is empty

This happened for example in a starred-message-only view when
un-starting the last message. This led to isFirst() and isLast()
causing a NullPointerException when trying to update the
previous / next buttons.

new version using the existing isEmpty() method