Make sure that no error is thrown if channel is null.