xfree86/modes: Bail from xf86RotateRedisplay if pScreen->root is NULL

Avoids a crash in xf86RotatePrepare -> DamageRegister during
CreateScreenResources if rotation or another transform is configured for
any connected RandR output in xorg.conf. The generic rotation/transform
code generally can't work without the root window currently.

Closes: xorg/xserver#969
Fixes: 094f42cd "xfree86/modes: Call xf86RotateRedisplay from
                     xf86CrtcRotate"
Acked-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
3 jobs for xf86RotateRedisplay-no-root-bail in 4 minutes and 39 seconds (queued for 1 second)
Status Job ID Name Coverage
  Docker Image
passed #1510006
debian-testing

00:00:33

 
  Build And Test
passed #1510007
autotools-build-and-test

00:04:05

passed #1510008
meson-build-and-test

00:02:05