Fixed crash in DatabaseImpl::file.