Fix startup with null window-system

This happens when x-display-pixel-width is unavailable, which happens
when emacs is started with -nw or --daemon.