Autoindent doesn't always occur

Currently autoindent only kicks in as so: 
```
<div>|</div>
```

This allows it to also work with:
```
<div>|

</div>
```
We probably should put this logic into getNextLineIndent, similar to other modes, but whole indent code needs some rethinking, so this is ok for now.