[qtgrilo] Fix assert when clearing an empty model.