Backported getheading fix from new grammars branch. Corrected mysterious problem with double reporting of info messages