First, I believe that it against the NJ statute to collect rent unless you are an owner or a licensed real estate agent. You can check that out right at the start.
Usually Landlords do not pursue people who have moved out. It's just not worth the time, although you may have to leave your security deposit behind. (Again, not worth the time to argue about it with anyone but the landlord directly.)
You should know that there are laws on the books in New Jersey that protect you in just this case of foreclosure. If it were I, I'd stop paying rent and start putting it in a savings account so that, if push comes to shove, you'll have a reserve. That's not a legal opinion but as a practical matter, you can't be evicted without a court hearing and if you want to stay until the end of your lease, all you have to do is have someone come foreword to demand the monthly amount and prove that they are entitled to it and if you then pay, you can probably stay until your lease expires.
On the other hand, if you'd like to find a less unsettled situation, having a couple monthsâ€™ payments in the bank may give you the funds you will need to affect the transfer.
As far as attorney representation goes in this affair, you may not need it, not because there are no legal issues at stake but that they may not be worth anyone's time to pursue.
I'd start by searching on line at this Website: http://www.njpublicadvocate.gov,
which should at least set you on the right path.
Just remember, if you have the cash ready to go, you are in a lot better position than if you don't pay the rent and divert the funds into other expenditures. If you don't pay the rent, sooner or later the sheriff will come to escort you out. Having funds to move on immediately at that point will be most helpful.