Refs #10120 fix bug: isFormOrFormElement returned "" instead of false since return type was ": string"