A simple check for validity of variable

This fixes the compilation error of "Cannot read property '0' of
undefined." This causes the error when doing the actual compilation:

    .title data-foo=bar

Where `bar` is a bound variable. This can be replicated using other
attributes as well.
Merge pull request #119 from peaches/master

A simple check for validity of variable