erp5_hal_json_style: get last form from correct document

See merge request !1718
Status Job ID Name Coverage
  External
failed ERP5.UnitTest-Master.Medusa

passed SlapOS.Eggs.UnitTest-Master.Python2

passed SlapOS.Eggs.UnitTest-Master.Python3