fix the null filter issue.

Exception [can't get constructor of null] was thrown if use null as the filter value.