don’t insert EndJsp if content does not look like an HTML.
  test case and fix. addresses ARI-3810
Merge branch 'ARI-3810' into ait-qa