Debug TypeError: Cannot call method slice of undefined at processRawItem