fix(modal): should not throw an exception when a modal isn't on the stack