Fixed an issue where we would get no implicit conversion of nil into string in the JSON.parse. For the fix I am having it pass a empty json object if the result is nil as JSON.parse cannot handle empty strings.