They are not required to refund the assessment: you were assessed it while an owner and so incurred the charge while an owner--therefore, they do not need to return it. You will have to try to work out an adjustment with the buyer, if possible, to see if they will offer you something in exchange for you havng paid this expense for them.