src: add nullptr handling for NativeKeyObject
#56900
+1
−0
Merged