[Refactoring] Fixed potential crash in results editor extension.