lookup_report: fix exception message when the report is not found

when we get to the `raise` statement, `r` is `None`, so displaying it in the
exception message is useless; `name` is what we want to show.