fix to handle older apps which do not have 'sparse_carts' field populated

[merge]