Issue 4022 array index out of bounds exception in rest content resource