To avoid finding yourself in an unpleasant situation where you're unsure how to proceed, discuss this matter before renting a bike.
Inquire in advance with the owner whether the vehicle or bike has any insurance coverage in case of damage. Take photos of all scratches and dents to document the bike's condition before renting.