Fix empty views being expanded.