Fixed nullcheck of value previously dereferenced.