What began as a warm exchange between Prime Minister Narendra Modi and French President Emmanuel Macron quickly turned into a moment of global-stage humour, with quick social media doing the rest.