Check for UPLOAD_ERR_NO_FILE in UploadedFile

fixes #4276 
This line can be removed because this change won't cause break of BC.