Fix for LMS mailing while applying leave.