Refs #19825 - Fix jsregistry condition