Applying patch from Richard Cao (richcao@ca.ibm.com) for Bugzilla bug report 5761. Removed code that caused keys to be ignored when they select an empty set of values.