ensure that the value asertion does not panic
If there is no routing key available then the function will
return nil, nil and release the waitgroup. The waiters will
then type assert inflight.value which is a nil interface
value which then panics. In this case we should just return
nil as the originating function did.