(#1244) - fix leveldb validity check so it will fail in a browser