Fix crash marking thread unread.
Don't crash deleting a PM with no message ID.