Michael Palij, The Ukrainian-Polish Defensive Alliance, 1919-1921