[PATCH 4.19 169/243] pstore/ram: Avoid NULL deref in ftrace merging failure path