match_formats: keep iterating on exception

Before, match_formats would bail out of the matching iteration as soon
as it hit an exception. If this happened after some format matches had
already been found, this could result in a misleading identification
report; see #53 for a specific example.

Fixes #53.
Merge pull request #54 from mistydemeo/exception

match_formats: keep iterating on exception