notify: avoid using queue (dom window) when it's not available - i.e. in tests
* added a log warning when it's not available

(integrated from master branch change 90fd2e3 by Todd Whiteman <toddw@activestate.com>)