Bug 1089214 - Avoid using null query in D3D9SurfaceImage::EnsureSynchronized. r=nical