The problem was that v5.2.0 trimmed the whitespace from $:/core/templates/store.area.template.html which we'd previously been relying on during the import. This change still allows v5.2.2 to import encrypted pre-v5.2.0 wikis Fixes #6330