Adapt the script to the adjustments
requested to merge fix/SomConnexioInvoiceXMLScript-adapt-to-adjustments-and-punctual-invoices into master
The adjustments has not subCategories in the document. We extract the getSubCategoriesLength method to isolate this functionality and manage the exceptions in its excope