Fixed component is undefined when executing component.run() without passing in a function.