py: Fix VM dispatch following a pending exception check.