Fixed openmrsDialogSuccessCallback reference error on dialog closes