Added assertion to ensure inserted editor is not in the notebook already.