Man sentenced to five years in prison for biting police officer is cleared of attack