Dillian Whyte survived a ninth-round knockdown to overcome Oscar Rivas and edge closer to a world title shot.