Fix null-value for substances in the history