Added additional conditions to skip attempting to create a DefaultSerializer.
NuGet push.