Add missing null check.

Implemeted Guava interface declares @Nullable parameter.