fixing bug in the skip checkout code for when there is an error in the basket