Don't send empty object when payload is empty.