Only define constant if it's not defined.

A bit of safety, as @JeffPyeBrook mentioned in #1053
Merge pull request #1069 from jbeales/fix-typo-1053-option-2

Only define constant if it's not defined.