Fix CID 1491229: dereference after null check.