Are you sure the landlord is actually bankrupt? Has a bankruptcy order been made against him? Check with the Official Receiver. As you effectively are creditor in terms of your deposit with the landlord you should have been notified of the bankruptcy if indeed there has been an Order made.
If so, you would be better off giving details of your claim to the Official Receiver or trustee in bankruptcy but this can be a long-winded process and you may well be too far down the pecking order of creditors to receive anything back. For example, you do not know how many other creditors the landlord has - secured or unsecured. Secured and preferential creditors will always be paid out first.
Usually, a mortgage lender will not require a tenant to leave until the Lease is up. You are effectively a sitting tenant and usually the lender tells you of their intention to repossess but must honour the existing lease (Landlord and Tenant Act). Your rental payments are used to repay the mortgage and any arrears until the lease is up.
It appears that you have a case against the Agent. It is encouraging that they have found you a new property. However, clearly there has been a case of either negligence or misrepresentation by the Agent when you took on the contract.
I would explain this to them and ask them to refund your deposit and moving costs due to the misrepresentation. If you get nowhere you may have to get a solicitor to fire off a letter to the Agent. Remember to claim costs if you head for the small claims court.
Any chance you can get it in writing from the Agent (before you advise them you intend to go legal) that they knew the landlord was in arrears yet failed to disclose this material fact?
I experienced this in the UK a few years ago when there was a raft of buy-to-let landlords completely over-stretched and behind on their mortgages (more are coming believe me). The farce is that Agents will regularly credit-check tenants but tenants rarely ask if the landlord is up to date on repayments! The Landlord and Tenant Act thankfully gives some protection to sitting tenants but deposits normally go up in smoke.