There are numerous scenarios where the house is worth less than zero dollars. For example when there's a large overdue tax bill attached to the property.
Or it's in extremely bad repair and will need to be torn down before you can rebuild on the land. If you look at listings for land, a surprising number of them are actually listings for "houses not fit for human habitation".
The land itself is worth about 35-50 percent of the house depending on location. So there are never situations where the value of the house is worth zero.
It is entirely possible for land that house stand on being nearly valueless. Think of really rural or low demand area. And on other hand house it self being expensive to take down. Maybe containing mold or asbestos.
The cost of getting rid of the house - or other liabilities - is sometimes higher than the value of the land itself. There are situations of zero and even negative value.