Do not copy event data when not-required
Do not copy event data when not-required

This will prevent crashes if the caller is casting from a const buffer to a
mutable buffer.

hughsie/libgusb,hughsie/libgusb,hughsie/libgusb