Catch HTML header parsing errors