UK MP convicted of harassment spared jail