wavpack: Properly check channel index, dont write out of arrays