The relief granted in an action or proceeding directly or collaterally attacking the judgment in the action, whether based on lack of actual notice to a party or otherwise, shall not impair the rights of a purchaser or encumbrancer for value of the property acting in reliance on the judgment without knowledge of any defects or irregularities in the judgment or the proceedings.