Fix: prevent crash on empty blocks in no-else-return (fixes #1527)