Fixes bug mentioned in https://github.com/konradb3/libLMS1xx/issues/1

When buf[0] is already 0x02, and no data is read the following gets evaluated: (buf[len - 1] != 0x03)
len is 0, so buf[-1] is attempted to be read. this is of course out of bounds