Correct options.history assignment when options.enabledHistory used.

I ran across this code while building type definitions file for the DefinitelyTyped project here on GitHub.