[BUGFIX beta] Normalize the `if` and `bind-attr` truthiness

Changelog updated
Merge pull request #4662 from selvagsz/normalize_if_and_bindAttr_truthiness

[BUGFIX] Normalize the `if` and `bind-attr` truthiness