Fix T93629.
On executing reset_default_button,
We iterate below from active step to find the target step in BKE_undosys_step_load_data_ex
But active and target are on same level if values are already reset.
In this case, we reached to the first step (element of stack) when searching for target step.
So check if target and active steps are on level