How to Prevent a Tax Hit When Selling a Rental Property