ppb_url_loader_open: release resource before entering nested loop