audio-effects: Fix out-of-bound read

Modified check to avoid out-of-bound read.

Change-Id: I3ed00c16287b1918d7670604f01f6d5e24bf9d4a
1 file changed