The frosty handshake between Vladimir Putin and Azerbaijan's Ilham Aliyev at the Beijing parade comes after months of strained relations between the two countries