Fixes an infinite loop when requesting element 0 from traversal arrays.