StoreDirect: fix IndexOutOfBounds exception
StoreDirect: fix IndexOutOfBounds exception

sumit784/mapdb,jankotek/MapDB,cocosli/mapdb,lamfire/mapdb,morfeo8marc/mapdb,ffjiao/mapdb,pettermahlen/mapdb,SleimanJneidi/mapdb,binarytemple/mapdb,jankotek/MapDB,jankotek/mapdb,hangum/mapdb,ringoluo/mapdb,codeaudit/mapdb,jankotek/mapdb