Also check for undefined

Else if value is undefined a filter without value is added which causes
and exception