Adds a disposable resource to the stack, returning the resource.
The resource to add. null and undefined will not be added, but will be returned.
null
undefined