erp5_core: Fixups in Base_getRelatedDocumentList

- Remove passing of **kw to query, since it would break Listbox
pagination
- Avoid code duplication
- Fix indentation
1 job for graphic_gadget_js
Status Job ID Name Coverage
  External
failed ERP5.UnitTest-Master