Fixed exception when merging rules with `Permissions().permissions = None`.