Fixed error when stimulus was not present in dataset.