Priority queue, queue empty error. - C#