Fixed runtime errors when using Django CMS 3.0 Beta.