Fixed issue with modals, more than one modal causing stack overflow.
Backported change from:
  https://github.com/twitter/bootstrap/issues/4781
  https://github.com/twitter/bootstrap/commit/e424b3879c751a8c0efc20d549ee066c8b1f9068