Added check that the stimulus has a name field.