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.
Merge pull request #266 from m0vie/npe-fix

message view / list: fix NPE when list is empty