Fix for missing openContents object

If openContents doesn't exist, it will not throw an error because it could not find openContents.securityLevel.