Fix NRE when stepping after pausing the debugger

When pausing the debugger no break event is fired, so the current
thread has to be explicitly set. Fixes bug #9629.