Ensure aliases are not set twice on instanciation
Merge pull request #5064 from lucasmichot/4.2-foundation-getinstance

[4.2] Foundation : ensure aliases are not set twice on instanciation