Fix NULL pointer crash in PSTKD_Ok().

SFDCreateUndoForLookup() returns NULL if an error occurs when reading the file to a string.  We should not call GFileWriteAll() in that case.