Handle context copy gracefully

When import orders is called from cron, context comes in as None
We create a new context from original context which fails in this case
This patch handles this context gracefully and prevents cron from blowing