XWIKI-10056: Distribution Wizard doesn't kick in when upgrading from 4.5.3 to 5.4.1

(cherry picked from commit 5d9ec6ab844223b4dd414aa33a40de501c98b4d8)