China has much more to lose than gain (economically and militarily) by warring with the US over NK.
If the US invaded North Korea, and China did nothing, it would be the equivalent of China invading Canada and Mexico, and the United States doing nothing but issuing nasty diplomatic protests. Even if it did not threaten its interests directly, the loss of face would be immense. Wars have been started over far less.
Have you forgotten how half of the US government wanted war with Russia over Crimea? A little Ukranian province, on the other side of the world? Completely insignificant to US interests?
Compared to the Crimean war, unilaterally invading North Korea is like striking a match in a gunpowder factory. I'm sure that the fools who will authorize and cheerlead it will not for one moment think that it will turn nuclear.
While China ostensibly supports NK because it's preferable to the US, the relationship isn't nearly as close as US with other NAFTA nations. This is supported by the original article. It isn't as much of a face loss as you're supposing.
In addition, the primary fear for the CCP was that the US would try to march all the way to Beijing. There's no way that would happen today, so China has much less to fear from a modern Korean War than it did in the first.
North Korea is an important buffer state for China.