Only add bodyhash when there is actually a body

This avoids the signing of the body, when there isn't any