This commit restores the order of additional and active profiles so that active profiles now take precedence. Fixes gh-26189