Implement and use MessageCursor#indexOfMessageById