Fixed an issue with opening files without a cursor position.

File cursor positions were saved as `undefined` if it didn't exist. This
caused the line `buffer.cursor.row` to throw an error that `row` doesn't
exist on undefined.