Added assert not null into parser constructors