Change order populator to handle invalid variant_id and quantity values

I think this block is probably a refactoring leftover and can be removed.