Split element classnames fails with {{#if}}

```html
<div class="fails {{#if state}}animate-{{state}}{{/if}}"></div>
<div class="works {{#state}}animate-{{.}}{{/state}}"></div>
```
http://jsfiddle.net/prometh/Uy6Xb/