In no case shall the city be liable for damages to any person or persons for any unlawful or unauthorized arrest or false imprisonment made or effected by the marshal, chief of police, or any other policeman of the city; but if damages are ever thus sustained, they can only be recovered out of the officer or officers whose unlawful and unauthorized conduct may have produced them.