Issue #3464812 by baldwinlouie, yas: Fix an array access error in Scenario No.4 of testK8sCostResourceStoreTest