Fixed editor#elementPath method in case when no selection is available.
Changelog entry.
Merge branch 't/11490'