Nestle has lost an appeal against a court decision that had overturned the trade mark protection for the shape of its four-fingered Kit Kat bar in the European Union.