In case of existing ids but empty mainkeys it should not create a unfiltered query
Merge pull request #1337 from trob/j3_mainkeys_limitissue

In case of existing ids but empty mainkeys it should not create an unfilt...