Parser: moved the out-of-bound check to addTag()