If a document is untitled, the file is null; this had to
be taken into consideration when performing the read-only check.
Authored by: mgricken 2008-04-22
Parent: [r4451]
Child: [r4453]