correct the Bug in Parser.js

correct the bug in parser.js about null length