Fixed NPE if there are empty tagsets
Merge pull request #2619 from dominikl/rebased/develop/search_by_tag_npe

Fixed Search by Tag NPEs (rebased onto develop)