Issue #3268272 by sayco: TypeError: strpos(): Argument #1 ($haystack) must be of type string, int given in strpos() (cherry picked from commit e605d0d3)