USD IO: Validate data in the operator, before starting background job.
I think you need to do an extra check before that two lines. It checks for "No filename given" but it doesn't check for "Invalid filename".