No occupying claimant shall recover compensation twice for his improvements; and in all cases where the occupying claimant shall be paid for his improvements by any person other than the proprietor of the better title, such person shall be invested with the same rights, and have the same remedy for the recovery thereof, as is given by this chapter to such occupying claimant.
§ 524.250, RSMo