WL-3369 We can’t of course determine type of null.

This was resulting in all null values being warned about. Now we do the null check upfront and then we can ignore it later on.