Fix the Prevent CID 48468 Dereference after null check.