bugfix: webpack crashes if error happens during processing file in sweetjs