fix(scope): return null to supress an analyzer error

Closes #594