Check for null or undefined body before munging