LPS-46873 SF

Hi Brian, 

Fixed this issue because I didn't know that even if we don't upload any file we have a non null reference after retrieving the file from the `uploadRequest`.

Thanks