Don't add empty filter sets to the file filter dropdown list.

This fixes #7973 and #7974.