LPS-42922 Add break to a loop in ResourcePermissionLocalServiceImpl
LPS-42918 Avoid calling SitesUtil.isLayoutUpdateable whenever possible.