A recovery of a judgment for a penalty or forfeiture by collusion between the plaintiff and defendant, with intent to save the defendant, wholly or partially, from the consequences contemplated by law, in case where the penalty or forfeiture is given, wholly or partly, to the person who prosecutes, shall not bar the recovery of the same by another person.