Fix exception thrown on refresh
Fix exception thrown on refresh

This commit fixes a bug whereby an exception is thrown when refreshing
the extension (via its own toolbar button) whilst one or more AJAX
requests are taking place.

dossier/sortingdesk,dossier/sortingdesk,dossier/sortingdesk,dossier/sortingdesk,dossier/sortingdesk