Handle failed uploads without a defined dataType. Fixes #2333.