Fix NullPointerException at
java.util.regex.Matcher.getTextLength(Matcher.java:1234)
Merge pull request #795 from emmanuel-keller/master

Fix NullPointerException at