Agent disconnection when sending null data to API