Handle case where no messages were received from the server.
Handle case where no messages were received from the server.

If messages were requested but the server returned an empty list of
messages (corresponding to the query parameters) this would previously
cause a fatal exception on the use of "head" and "last" on the list.

matterhorn-chat/matterhorn