DNN-5601 Allow specifying null type to GetValue and GetValueOrDefault

The `GetValue` and `GetValueOrDefault` methods in `DotNetNuke.Collection.CollectionExtensions` try to automatically convert a value into a given type. However, if that type is nullable and the value is `null`, then an `InvalidCastException` is thrown. The code should allow returning `null` for a nullable type.