Show thread as unread if at least one of the messages of the thread is unread.

Fixes issue 4759.