Issue #1995892 by hswong3i, jlyon: Fixed JS error: Cannot set property 'events' of undefined jquery.ui.dialog.patch.js:24.