As Beijing has grown anxious over North Korea's behaviour, it has qualified its 1961 defence agreement with Pyongyang by emphasising that it would assist against attack - but it would not support the Kim regime if it began a war.