Check to see if the error object has a Body propery before treating it as an AWS API error.