Fixed an issue with the pop() function when pop() gets called twice for the same node in a one node stack