Fixes NullPointerExceptions with empty JSON objects.