Update UploadField.java

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