Bug 836811 - Fixes a regression / crash caused by bug 822371. If there is no security UI, return. r=smaug.