ECMS-6046 catch the case of ArrayIndexOutOfBoundsException