Ariana Grande came close to quitting music before Wicked