Fixes #3848: show/hide modal background when swap style.

Fixes issue #3848.

If one modal step is followed by a default style step, modal background is hidden and if a default style step is followed by a modal step, the modal background is shown.