check inventory and restart checkout if not enough

fixes #5585