Fix potential NULL dereference (CID 27).