Fixed divide-by-zero and runaway scripts occurring due to the auto-sell handling getting overloaded and dying