Fixed creating a new document when the server is offline.