Implement THROW_ERROR macro and throw and error if stack is empty and
user wants to pop