Prevent SegFault in the absence of XRANDR

(Fix #46) Patch by Steven Chamberlain
https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=bug749629.patch;att=1;bug=749629