Bug 959742 - Auto close lists if they don't have any buttons on them. r=bnicholson