Check if file is parsed before adding it to DataModel.
Fixed IndexError when saving last directory