Any person who lodges or maintains a caution wrongfully and without reasonable cause is liable, in an action for damages at the suit of any person who has thereby sustained damage, to pay compensation to such person.