Apply JS admin monkeypatch only when in admin.

Because only admin forms use dismissAddAnotherPopup, it's undefined
in regular forms.  That in turn results in
"Uncaught ReferenceError: dismissAddAnotherPopup is not defined." when
loading chained widgets.