[BUGFIX] PHP Warning: strpos(): Offset not contained in string

Change-Id: Iac0e341c34aa43f52cc936ed69f56420471c77db
Reviewed-on: https://review.typo3.org/29459
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers