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

Fix NullPointerException at