Check array bounds passed to WebCore:PeriodicWave.