[#59945344]  Don't send analysis result/failure email if analysis was cancelled.  Code cleanup.