Make error when zero length data was requested for serialport::write