pstore/ram: Avoid NULL deref in ftrace merging failure path