Better error check for if stack locals are already isolated