Fix firing shown event when modal does not contain .modal-dialog element