Avoid PHP warning in strripos()

bug: 56586
Change-Id: I9c70e28ca7495893f5a34a3f5ec301815de35e2c
Merge "Avoid PHP warning in strripos()"