Fix for stacking order when creating and opening in different sequence.

As discussed : https://github.com/jschr/bootstrap-modal/issues/93#issuecomment-15348903

m.