Work around dirty Qt4 test code

...failing under -fsanitize=undefined -fno-sanitize-recover

Change-Id: I33a72bc1474708847f4cfc6d3d2ae6a19eb80c7f