Before such homes are listed for sale with a real estate agent , they can sit empty for weeks while the lender that foreclosed sorts through claims from other lien holders and makes sure the title is clear .