Fixes the case where the next section header contains a modifier, e.g. 'thermo all' or 'reactions <units>'. See Issue 199.