Check for activeWindow before marking the view as processed. Fixes cases such as #19 where a view is activated without a window, then with a window immediately after.