prevent TypeError identified in COOK-3113
Merge pull request #8 from dpetzel/COOK-3113

prevent TypeError identified in COOK-3113