Don't break if no attribute value

Fixes the transformation of things like `<button disabled>`.
Merge pull request #1130 from spicyj/if-attr-value

Don't break if no attribute value