SONAR-5826 Fix migration of source code when DB is empty