handle if-chains without an else in the outliner