Process only defined tasks

This is to fix a bug where the parser strip the <!-- endbuild -->
tag regardless whether the task has been actually defined in the gulpfile.

This potentially avoid conflict if one uses gulp-html-replace with
other gulp processors, say gulp-usemin.

Update parser.js