Fix for #33: null in attribute value

In several places we were only checking for null in the state's
if-statement and not breaking out of charsUntil for it.