Check the last token for a comma and not just the next one.