Bug 1089940 - Check for null earlier in favicon data: URI handling. r=ckitching
Bug 1078395 - Work around missing profile in RestrictedProfiles. r=mfinkle

This is a partial fix; it avoids a crash, but isn't necessarily correct.