Fix plenty of logic errors in the SubtreeModel

These methods were so wrong that it was not even funny. The *weew* used; how
come that this was not caught before?
Use one common code path for model initialization on both desktop and QML versions

REVIEW: 115438