Fixed errors when the element is not present in json output or text appears instead of numbers there.