fix(parser): handle empty strings

Closes https://github.com/angular/angular/issues/252