should fix gemset_empty WRT #4681
Merge pull request #4849 from cvrebert/patch-3

should fix gemset_empty WRT #4681