Fix ScopedContext to not restore nullptr context
When Original context was nullptr, restoring it would clear the
active context, breaking tests that expect context to remain active
after UR API calls. Now only restore if Original was a valid context.