Fix Null Pointer Dereference.

parser->langTable should be Null checked before first dereference.
At first it is dereference in switch case.