Fix active_window_changed function if there is no activewindow