Exclude `null` and `undefined` properties from given object.