fix a SIGSEGV similar to issue 1347
fix a SIGSEGV similar to issue 1347

Signed-off-by: Brandon Cole <df65d6c2bc7fe8351221bd42111f492ad9599cc5@datadoghq.com>

helm/helm,bacongobbler/helm,helm/helm,bacongobbler/helm