Fix for email for task overdue issue that occured in cron job