analyser: fix for crash in case block was not found