Bind 'click.dismiss.modal' to [data-dismiss="modal"] on modal show.

Fix for #9362 with test.