Fixes #1075: separated empty switch and empty display for ListView and GridView.