transport: add another null pointer check.