[bugfix] Fixes segmentation fault

This commit partially reverts the previous commit.
Now instead of clearing data from the models using
clean(), it just clear the list of data, without
calling beginRemoveRows and endRemoveRows.