Fix for model uploading to work

Fix for model uploading to work. The deleted elements were causing an
error when trying to upload models.
Merge pull request #4001 from cozza13/20244

CR for Job #20244 - Fix model upload on Editentities