Fix unusedkeys test not detecting key use in widgets with no js

If a widget has no javascript then the unusedkeys test wouldn't look in its HTML for key use.