SHANGHAI—Censors have altered the ending of the recent animated film “Minions: The Rise of Gru” for its domestic release in China, social media users across the country noticed over the weekend. The editing is yet another example of Chinese authorities editing a popular Hollywood film to make it more politically correct, leading some viewers to…