Fix for Gallery and 'Access Denied' messages in the MODX Manager

Fix for the 'access denied' messages in the MODX Manager when using Gallery ... tested in multi-context scenarios but would like third parties suffering the issue to test and confirm too before this is merged.