fix NPE issue when adding parameter value to where filter