Fix bug in boolean logic related to generics nullability am: da548db947

Original change: https://android-review.googlesource.com/c/platform/tools/metalava/+/2026981

Change-Id: I9f84004b34cdc136ea0c147d867ba69129927f87