Protect against NPE in stringGroupExtractor too, see #1679