Fallback for IDBCursor to prevent a type error when setting prev/next

Related to issue #43.