Avoid infinite loop in "Toggle Contained Nodes" action

Authored by loh.tar on May 8 2019, 6:01 PM.

Description

Avoid infinite loop in "Toggle Contained Nodes" action

...when there is an empty range

Differential Revision: https://phabricator.kde.org/D21078