Merge "Fix exception when api_extensions is set to empty"