Fix an NPE in InstanceStack

@bug W-1982209@

@rev eric.anderson@
Merging origin/goliver/master-pending-instance-npe into master