Solves bug in CommentAutoIndentStrategy

Because of the new introduced Scaladoc code blocks the end of open
Scaladoc comments was not correctly detected anymore. Before, there was
looked if the Scaladoc comment has reached the end of the file, now it
is also looked if the end is before a Scaladoc code block.

Fix #1001463

Should be backportet to 3.0