Catch some null exceptions in parser