Fix stupid bug that throws an exception when there are no unseen
messages.
Bump version to 0.31