Added a guard when there are no changes, do not send mail nor create csv