fixed api error message for uploading empty dataset

#1618