Disallow null bearer tokens.

Merged Simon Morlat requested to merge fix/crash-and-slow-perf into release/5.4

Merge request reports