XWIKI-11210: When importing an extension don't remove unkown versions if they are valid

(cherry picked from commit 064cd52b41c24d663bb02b13a1b3987a2e4d1abb)