Fix bad variable name in exception message when report file can't be opened