If your agent is using the standard AREA listing agreement, have a look at clause 10.8. I understand the basis for this clause is you've hired the agent to sell the house by obtaining a legally binding contract for the sale, and if there are funds available then they're entitled to be paid something.