createTag bugfix

Some (form) tags that have length property.
Testing tagName instead of length.