Update UploadField.java

Fixed exception which is thrown if you have a delete button enabled and the field fieldType is BYTE_ARRAY