Added a NPE when an analyze cannot be found.