Fixed crashing issue when JSON returned null values.