Dont try to emit data-mw if tpl encapsulation fails.

* Fixes crashers in a couple of pages.
  Ex: Wikipedia:Articles for deletion/Log/2007 February 14

Change-Id: I488c63d99c0cb74135cbda7b040c6fa46db6587d