fix for issue #14243 (http://dev.vaadin.com/ticket/14243)
use of distinct in QueryDelegateModifier causes NullPointerException in
table paint