Bug 711418 - Handle diagram file with comments

A comment as the first part in the XML file was prohibiting to load
the file at all with “Not a Dia file” error.

(cherry picked from commit 805905eae28f215c74716c1fef684106a9997c54)