fixed the populate DB script to work if any email messages had been generated
fixed the populate DB script to work if any email messages had been generated

kudustress/NuGetGallery2,KuduApps/NuGetGallery,JetBrains/ReSharperGallery,projectkudu/SiteExtensionGallery,KuduApps/NuGetGallery,kudustress/NuGetGallery,KuduApps/NugetGallery16Fx45-DeleteMe,kudustress/NuGetGalleryOptmized,KuduApps/NuGetGallery,KuduApps/NugetGallery21Fx45-DeleteMe,KuduApps/NugetGallery16Fx45-DeleteMe,mtian/SiteExtensionGallery,grenade/NuGetGallery_download-count-patch,projectkudu/SiteExtensionGallery,KuduApps/NuGetGallery,KuduApps/NugetGallery21Fx45-DeleteMe,mtian/SiteExtensionGallery,kudustress/NuGetGalleryOptmized,JetBrains/ReSharperGallery,kudustress/NuGetGallery,ScottShingler/NuGetGallery,skbkontur/NuGetGallery,KuduApps/NuGetGallery,skbkontur/NuGetGallery,ScottShingler/NuGetGallery,projectkudu/SiteExtensionGallery,grenade/NuGetGallery_download-count-patch,ScottShingler/NuGetGallery,kudustress/NuGetGallery2,skbkontur/NuGetGallery,grenade/NuGetGallery_download-count-patch,JetBrains/ReSharperGallery,mtian/SiteExtensionGallery