Issue #2922595 by mglaman: do not create a metadata wrapper in commerce_line_items_quantity() if a line item object is passed in.