Assign NULL if last output was removed.