Bug 976415: Make sure we can read the file before reading it. r=Callek