What the judge is saying is that the bank doesn't own the mortgage, so it has no legal standing to foreclose on the property. I'm sure someone has legal standing to foreclose on the property, but it's not the responsibility of the people occupying the home -- or even the judge in the foreclosure case -- to figure out who that is.
There is going to be a separate long, costly accounting and legal process undertaken to figure all that out. The irony is that these people may very well end up living in this home for a long time without ever making another mortgage payment -- because the cost of figuring out who owns the mortgage may exceed the outstanding balance on the mortgage itself.
Wrong, it only takes a trip to the local court house to see who has current legal standing, foreclosure will take 30 to 45 days.