Fix bug where an empty preference set would lead to an IllegalStateException
Merge pull request #1 from woudt/master

Fix bug where an empty preference set would lead to an IllegalStateException