new_window: only set $window and pass `-n` if a name is provided

Otherwise `new_window` after `new_window foo` would re-use the same
name, resulting in an error.