Fix error when filtering an empty value.