proper error message on missing X display

assert is inappropriate here because it is optimized out when compiling
with NDEBUG