A stop payment notice ceases to be effective, and the public entity shall release funds withheld, in either of the following circumstances:
- (a) An action to enforce payment of the claim stated in the stop payment notice is dismissed, unless expressly stated to be without prejudice.
- (b) Judgment in an action to enforce payment of the claim stated in the stop payment notice is against the claimant.