added variable fieldsAndTabsToBeRemoved which replaces less obvious variable name AND added a conditional statement for the Attributes table to make sure they are only amended if they are available.
added variable fieldsAndTabsToBeRemoved which replaces less obvious variable name AND added a conditional statement for the Attributes table to make sure they are only amended if they are available.

hailwood/silverstripe-shop,StephenHonor/silverstripe-shop,hpeide/silverstripe-shop,markguinn/silverstripe-shop,webtorque7/silverstripe-shop,webtorque7/silverstripe-shop,bummzack/silverstripe-shop,StephenHonor/silverstripe-shop,hailwood/silverstripe-shop,bummzack/silverstripe-shop,mediabeastnz/silverstripe-shop,burnbright/silverstripe-shop,markguinn/silverstripe-shop,burnbright/silverstripe-shop,mediabeastnz/silverstripe-shop,webtorque7/silverstripe-shop,hailwood/silverstripe-shop,burnbright/silverstripe-shop,silvershop/silvershop-core,mediabeastnz/silverstripe-shop,markguinn/silverstripe-shop,bummzack/silverstripe-shop,StephenHonor/silverstripe-shop