[Console] Fix merging of application definition, fixes #7068, replaces #7158