Modified validation to test if the access to execution context if possible before checking if documents are accessible
Merge branch 'bonita-connector-email-6.0.x' of github.com:bonitasoft/bonita-connector-email into bonita-connector-email-6.0.x