No real estate agent or broker is entitled to a commission when a proposed purchaser fails or refuses to complete his contract of purchase because of defects in the title of the owner, unless such owner, within a reasonable time, has said defects corrected by legal proceedings or otherwise.