Fixed missing domain context during application enable/disable
Fixed fatal error during component setup for permissions.