Fix loading json with undefined data - #325