Bug 1017065 - Prevent the wrong garbage from being drawn and triggering a reftest failure. r=tn