console: Fix use of uninitialized values if fread() fails.