Fixed issue with null JSON values not being stored due to TypeError exception