President Xi Jinping and top EU officials mark 50 years of diplomatic ties in Beijing at a rocky time in relations.