Fixes consistency issues in tips table & take_over.

Fixes a bug in take_over that results in two entries in the tip table
with the same (tipper, tippee, mtime) but different amount.

Also removes unnecessary zero tips created in take_over when
neither of the users currently tips the tippee.

Further description in issue #1704.