Improve robustness of parsing Gaussian input files.