Wrap the escodegen attachComments() method in a try catch block as a precaution