Fix "close" event for Reveal

Currently the "close" event is not being fired when the user clicks the
modal backdrop with closeOnBackgroundClick true, since the close event
is being triggered on the closest .reveal-modal parent of the target.
This naturally doesn't exist when the target is the backdrop.
Merge pull request #2944 from mhchen/reveal-background-close-callback

Fix "close" event for Reveal