[PATCH 4/6] qcap: Validate the index in AMStreamConfig_GetStreamCaps().