Update sendEvent function to force passing undefined if metadata is empty.
Update sendEvent function to force passing undefined if metadata is empty.

google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp