Fixed ability to set the panel dismissible option after the panel is cre...

...ated
It's not OK to unconditionally create an additional div here because that will result in extra, unused divs. We need to retain the condition here, and also belatedly create the modal div if absent when the user sets the dismissible to true.