This fix an invalid-read if more than one renderer items are passed in a row. (cherry picked from commit af123cc2)