JCR-2122: Prevent some SecurityException when the cluster profile is enabled