Fixed bug with emptyTags (see below)

Empty tags were casing a bit of a problem.

Given the file:

```
<template name="tmpl">
  <form >
    <input required="1" type="text" name="sdfsd">
    <input required="1" type="text" name="fo">
```
we'd get the following output:

```
<template name="tmpl"><form ><input/></form><input/>  </template>'
```

the pull req should fix it.