[FLINK-1296] [runtime] Fix bug when large record handling results in empty spill files