Fixed issue with modal closing prematurely when it is the second modal invoked.
Fixed issue with modal closing prematurely when it is the second modal invoked.

HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend