And no, we can't just wait for the market to self-correct for empty properties being devalued due to being surrounded by empty properties: you'll just end up with empty, abandoned buildings that nobody wants to fix.
If you want incentives to make people avoid doing that, the only two methods that I can think of are property tax, or legalised squatting (with squatters having a right to stay).
What up property tax? In my city you get reduced property tax (but not zero) if it's commercial building that is empty and unused, but I can imagine there are cities where demolishing an empty building is more cost effective than paying property tax on it every year.
On the other hand, demolishing it also costs money, and with property tax rates on the order of 1% or less, it will only return in something like a decade.