[analyzer] Check all 'nonnull' attributes, not just the first one.

Patch by Daniel Fahlgren!