Make Qt Backend not crash with gtest runner