Add a NULL check on the message.

  Not required, but added during a debugging session and it seems
 like a useful thing to do.
  New release 0.25