Fixed #21968: Bad detection of old-style apps to add initial migration