bugfix: do not allow null or undefined in string-based attr checks
1.1.1