Made sure head is set to null when popping the last element in a QueueSet.