SI-7013 Scaladoc: Fix StackOverflowError

No one see the result value of parse and if so, it's tail-recursive.
Merge pull request #2279 from kzys/jira-7013

SI-7013 Scaladoc: Fix StackOverflowError