Fix an upcoming recommended lint (#1680)

https://dart-lang.github.io/linter/lints/null_check_on_nullable_type_parameter.html

Eagerly fixing before we start picking up the new lint package.
1 file changed