Fixed JS registry conditon for archive_dialog.js

* Bug fix: fixed JS registry conditon for archive_dialog.js
  [ghicaale refs #20389]