Moves the null check above attempt to read array. Fixes issue #510: https://github.com/techfort/LokiJS/issues/510
Moves the null check above attempt to read array. Fixes issue #510: https://github.com/techfort/LokiJS/issues/510

ThomasConner/LokiJS,runnr/LokiJS,VladimirTechMan/LokiJS,ThomasConner/LokiJS,techfort/LokiJS,techfort/LokiJS,VladimirTechMan/LokiJS,runnr/LokiJS