Fix lifetime/ownership problem between cache and tree model.
The QCache assumes to own its objects, so a geodata documents needs to be removed from the tree model before the cache internally decides to delete it.