[CB-2631] Fix crash when bad url given to FT.upload