Add asserts for static analyzers
Static analyzers think these can be null and misidentify errors, so adding asserts to show nulls aren't possible.
Static analyzers think these can be null and misidentify errors, so adding asserts to show nulls aren't possible.