Fix for "Warning: strpos(): Empty needle"

Fix a minor php warning (comes about because we run our dev server in strict mode with all warnings turned on)