Fix issue with SDK secret being incorrectly set to nil.