Corrected a crashing bug in mail threading.