Fixed issue in security checker with namespace pattern and private name.

Fixes an issue that causes private objects to fail.