analytics: fix edge case where clearing input wouldn't send the correct body
analytics: fix edge case where clearing input wouldn't send the correct body

sajari/sajari-sdk-react,sajari/sajari-sdk-react