feat(modal): prevent location change if modal is open

You are in a state that modal is open. User accidentally clicks back
button on the browser. You use a state manager, for example ui-router,
so page transition happens, without page refresh. Now, you have a
completely different page, completely different state, but you have
modal open.

This PR prevents URL change if modal is open.