SI-7143 Fix scanner docComment: docBuffer and docPos are initialized
in different places and as a result can get out of sync and as a result
the invariant that docComment has a position is broken.