Fix model uploading for the case that haven't uploaded model before
Merge pull request #3587 from ctrlaltdavid/20101

CR for Job #20101 - Upload model file function is broken