Giovanni Mascellani : tests: Do not crash if a pipeline statistics query heap cannot be created.