Remove nil groups from the results

Do not add nil groups (`{:name => nil, :quantity => nil}`) to the results, this gives rows flexibility in the number of groupings they contain.