The bank that misdirected the payment was acting as the agent of the tenant, not of the landlord, so the bank's error has got absolutely nothing to do with the landlord and he/she still has the right to demand payment. It's up to the tenant to get things sorted out with his bank.
As an analogy, if you sell something to someone online and then send it by post (with Royal Mail or your chosen courier service then losing the item) the buyer has the right to demand his/her money back from you. The fact that you posted the item in good faith is irrelevant; you had a duty to provide the goods and you didn't, so you have to pay up.
Exactly the same applies when it's a bank (rather than a courier) that messes things up.