Fixed null pointer in non-sketch upload