Remove generated .h file if the generation process fails.

If the script fails for any reason, or python isn't installed, we don't want to leave an incomplete qstrdefs.generated.h lying around.