UseIndexOfChar: fix null pointer with lambda expressions