[FIX] calendar: correct recurrency end date computation
[FIX] mail.thread: avoid error if `message_unread_count` has been popped 1 line earlier