put undefined value instead of null value as IE implementation of indexedDB does not support null values
set loclStorage to undefined when the code is loaded inside a google chrome packaged webapp so it does not throw an exception