Russia isn't energy dependent on the Ukraine. Indeed, she is developing new markets. I have little doubt she would rather sell her gas to clients who will not steal from them, and will pay their bills.
Just as Ukraine would rather buy gas from someone more reliable.