If no active editor is found, than get the one with index 0. #897