Fix #1619 Upgrade migration, checks if sbas exists before getting connection
Fix PHP notice when migrating from 3.6 to 3.8
Merge pull request #847 from nlegoff/fix1619

[3.8] Fix #1619 Upgrade migration, checks if sbas exists before getting connec...