analyzer: Fix invalid reverse iterators handling

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>