Fix analysis exception handling

The analysis module should not throw exception if the type is correct.

Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>