fix script error when favorites don't have a window or a path
Merge branch 'master' into 2.6.0