DOM tpl params: Avoid going async if all params are simple

If the param is composed by just strings, comments and newlines,
which would produce the same text as the wikitext, we can skip
going into a sub-pipeline to get the html.

Change-Id: Id2d068da3df45b5ecb7bba3dfff83c0a1b86449f