Check for the case when no data is ready and the required size was 0.