test_runner: fix junit report on empty diagnostic