Fix a crash with depth 1 perft

Bug recently introduced in e215a88cddd16e09

No functional change.