Removes null elements that are specified, primarily used for WCF interop