Don't update z-index everytime modal is opened.
Merge pull request #1612 from arkon/modal-overlay

Don't update z-index everytime modal is opened. Fixes #1611