It was an unexpected silver lining to cap an otherwise lacklustre end to the year for the world’s second-largest economy.