Fixed potential issue where IE9+ wouldn't close the modal when clicking on the overlay.  Fixes #576