do switch if the document a compile job finished for was a sticky or master document (issue #513)