fix checkpermission for anonymous users due to plone.api bug - 161