That only applies to depreciation of building etc. Losses you make through paying more interest than rental income, body corporate, council rates and the like are not clawed back when you sell. This claw back was brought in a few years ago, maybe the books you have read were written before then.