Only save the stack when there is some stack.