Fix error handling upon uploading contribution