fixes a possible npe when supplying explicit boost queries