Validate the type of the tagName given to mw.html.create

Change-Id: I35f70701ba6156325dfd268903452e6279aca528