Fixed potential NPE in filter hashcode calculation