Fix crash with absurdly but not impossibly deeply nested device stacks