Fix for assert on message thread refresh that involves thread disappearance