Catch the runtime exception from thrown in commit 45ec7aaa in hook_requirements(). This will avoid having broken admin/config and admin/reports/status pages when the error occurs.