A rioter who threw rocks and stones at police in Middlesbrough as they attempted to control angry protesters has been locked up for his behaviour.