Fix possible crash due to invalid plist data.