fix(htmlMin): add error handler to htmlMin exceptions