added the validity check to runTasks.py; Bug detected and removed from ResultingFileToHTMLWriter