Handling quit command on RPNCalc.solve, Stack.pop(0) returns [].