This also handles a Nan case and allows us to survive term-crash-tests as of fb6fa3192a65e8862c3c743ba102f7e2af45b519 refs: https://github.com/wez/wezterm/issues/1031
This also handles a Nan case and allows us to survive term-crash-tests as of fb6fa3192a65e8862c3c743ba102f7e2af45b519 refs: https://github.com/wez/wezterm/issues/1031