Fixed parsing of empty collection.