Fix UnboundLocalError local variable 'result' referenced before assignment
Fix UnboundLocalError
local variable 'result' referenced before assignment

https://sentry.data.amsterdam.nl/sentry/datapunt-apis-prod/issues/18436/

DatapuntAmsterdam/handelsregister,DatapuntAmsterdam/handelsregister,DatapuntAmsterdam/handelsregister