fix checking for attribute on word filter
[roojs1] / undefined