Fix #1914 by filtering out null values
Merge pull request #1915 from NuGet/anurse/1914-filternulls

Fix #1914 by filtering out null values