refs #18288, fix dom-attr return of non boolean when attr doesn't exist