When a custom report is run, the context of said report is not accessible and it's unclear what parameters are set.
Adding 37012 and 37013 as See also here, as this development should possibly provide the report information with a link back to view/edit the report.