[PATCH 4.14 103/267] pstore/ram: Avoid NULL deref in ftrace merging failure path