Master indexeddb storage bugfix
corrects bug in getAttachment of indexeddb, preventing the download of a slice of attachment. added test verifying the correction of the bug.
corrects bug in getAttachment of indexeddb, preventing the download of a slice of attachment. added test verifying the correction of the bug.