Fix bug in previous commit

The scanner would crash if there are no addins in the global domain.