8 answers
Yes this is the reason. In case it is not possible to perform this deployment with profile named 'System Administrator', you may want to modify the trigger code to this,
if (myProfile.Name!='System Administrator' && myProfile.Name !='System Admin with XYZ Homepage')
Only impact for this that from now on you and anyone with your profile will be able to delete tasks. This trigger prevents tasks from deletion by anyone other than 'System Administrator'.