currentRun.compiles now correctly works in toolboxes

Another random bug uncovered and extinguished when hacking macro annots.
Merge pull request #2817 from xeno-by/topic/toolbox-current-run-compiles

currentRun.compiles now correctly works in toolboxes