In instances where a motor vehicle damages the fence or gate belonging to a person other than himself or herself and the damage allows livestock to escape, the owner of the livestock shall not be liable for damage caused by the livestock until he or she has had actual notice of their escape and a reasonable opportunity to repair the fence or gate and recover the livestock.