Its impossible to get an error on step 4 and it not having run up until that step.
Check that the following segments are like they should be:
PHP Code:
var $_version = '3.5 Beta 5';
var $version = 3505;
PHP Code:
$versions = array(
1 => 3011,
2 => 3501,
3 => 3502,
4 => 3503,
5 => 3504,
6 => 3505
);
PHP Code:
),
3505 => array(
1 => 'Step 1) Choose Hack',
2 => 'Step 2) Verify Environment',
3 => 'Step 3) Altering Tables',
4 => 'Step 4) Re-Importing Product',
5 => 'Step 5) Finalising Upgrade',
6 => 'Step 6) Upgrade Complete'
)