fix issue 1878 - deselect all / search filter tags.

Also I fixed another problem: after selecting some tags and going back do the CardEditor and then again to the dialog to select tags, the previously selected tags would not be checked.