Nullability fix to account for updated Android SDK annotations

It's a series of small changes which refine nullability according to latest update of Android SDK annotations