Fix for parsing an array with "empty" last element

I found another bug in the code.