[SPARK-4264] Completion iterator should only invoke callback once