Fix for parsing an array with "empty" last element