fix crash when removing line without quantity
Merge branch 'master' into import_xml_invoices