Fix console error if currentEditor isn't available