save entity/symbol only if it is not null.