SI-7143 Fix scanner docComment production.

Wasn't able to extract a test case from the failing IDE tests unfortunately.
Review by @dragos.