Comment 13 for bug 650890

No, the empty file is not created on purpose.
AFAIK, this is a common behavior for all output type extension (I've already run into that kind of bug when debugging SVG+media exports). I don't know if it's possible to fix it from the python file, but I'd rather see the bug in the extensions implementation code (src/extension/implementation/script.cpp???)