src: remove some `call on nullable` warning with a non-null local variable