throw Error when trying to pop from stack that is empty