Fixes #60.

Check for nil body before invoking gsub.