Analyzer: Fix endless loop after finishing

That was a regression after 3de45d8c552e642bba7523b634953175c6acc947

Change-Id: I4b34060c1c56dce7e39cf3c4da607a9a24cfd02d
Reviewed-by: hjk <hjk121@nokiamail.com>