fixing null in character vector for fromJSON becoming ''