Fix html5 data check

When checking for the presence of HTML5 data style attributes the check
would fail if the value was "0" and wouldn't override any settings!