darwin_bulk_transfer crashes with EXC_ARITHMETIC on Mac

GetPipeProperties may fail when the device is unplugged if `DeviceVersion` not greater than 320. This case `maxPacketSize` will be zero and the integer division will throw a EXC_ARITHMETIC signal.