Silence some oclint complaints about nil checks.

cc @irbrad