Fix NuGet/NuGetGallery#1901 by adding ye olde null-check
Merge pull request #10 from NuGet/anurse/1901-targetdatabasenull

Fix NuGet/NuGetGallery#1901 by adding ye olde null-check