AUI-1107 Make sure all afterVisibleChange listeners have been called before destroying modal with destroyOnHide:true
AUI-1107 Fix lint errors