Switched order of Services and registered AnalyzerService.

TBR @srsaroop 
Switched order of Services and registered AnalyzerService to fix second NPE.
Fixes #1183