trivial: Fix a NULL dereference if the AppData file cannot be read
trivial: Fix a compile warning with clang