Update bootbox.js

Check shown event was fired by dialog element.

Adding a tooltip to a bootbox modal prompt to input field causes uncaught js error "Maximum call stack size exceeded" or crash browser tab/window
see the bug here: 
http://jsfiddle.net/5Dpu2/