[prevent][40806] Fix for dereference after null check