It seems that the `search` property is null and not undefined