write_stackdriver plugin: Check message for NULL before calling strdup().