DBMaker: handle NPE from mmap file enable on in-memory store
#261 add test case