stack: Do not add error if pop/shift/value accesses outside of the stack