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