Fix Issue #4901(Error Login Service Upgrade from 6.5.3 to 6.6.M3)
-- Fixed NPE when the old project doesn't have a Security service.