Fixes #3744 documents where we are using jqueryui