Catch and emit errors from html-minifier

Errors from `html-minifier` aren't caught and break things like gulp watch or watchify instead of letting the stream handle the error.