Fix NPE in filter initialization #1524