Avoid StringIndexOutOfBoundsException for angular expression. See
https://github.com/angelozerr/angularjs-eclipse/issues/129