Clear shadow registers only after potentially switching interpreters.

Otherwise the switch interpreter could see a null array instead
of an index out of bounds.

bug: 68761724
Test: 668-aiobe
Change-Id: I34dbafea4478334f803b87b580d1bd3ac54b0e60
6 files changed