Fix for #7865. Scripts onload handler passes event as first parameter so statusText is now passed as second argument for aborts.