Github user zentol commented on the issue:
https://github.com/apache/flink/pull/4769
As I said, it is better to return an `UnregisteredMetricsGroup`. The
current solution will blow up the moment the returned group is used, and can't
be guarded against with null checks.---
