Fix issue with UploadField.MemoryBuffer.setValue(null) -> NPE

Added newValue null check.
If it is null nothing to write in newly created buffer.