Then why did we see Walter in chemotherapy? Nobody he knew was there to witness it, so who is he trying to fool by doing that?
Walter didn't give Brock ricin, he gave him a poison extracted from Lily of the Valley flowers. When the doctors found that out, the investigators let Jesse go (they were initially suspicious because Jesse told them to look for "ricin" and it ended up not being that).