GeditDocument: bug fix for reading stdin

The location is NULL when reading stdin.