Fix bugs - ExtensionConfiguration's AllRoles and NamedRoles fields maybe null