Applied a reverted version of Bastiaan Bakker patch. If the AuthorizationService is not set or incorrect, we now throw an exception.
Changed paths: