Fix Checking for Application Scope Migration

In #526 I mistakenly had an undefined exception being rescued which
broke checking that the migration for application scopes has been run.
This commit fixes that mistake.

See also #525 for the original issue.