tests/emacs-daemon: fix failure for unset $DISPLAY
axelf4 figured[1] out a workaround for fixing a failure due to an unset
$DISPLAY variable.
[1] https://github.com/NixOS/nixpkgs/pull/168076#issuecomment-1098083299
authored by