Make buffer parsing more robust
Fix buffer parsing issue seen on ID13.
Consider an XMAP with 3 channels configured and the last one deactivated.
In the buffer, the data for the last channel (containing garbage) is reported as belonging to channel 0, overriding its actual data.