More style fixes.
Fix crash when trying to open a non-existing file.