Added explicit error for when undefined is supplied as a chain step.