The loop in parser.js assumed that there was always a heading before any comments (not counting the page title, only section headings). Bug: T243869 Change-Id: I3a0bb06716e75d4a17e25c40748673a071ee5f30