I'm not a Riyad fan but he did exactly what was needed when Shuhash showed his intent to go for the win. Without Riyad's intelligent support, he'd have either run out of partners or worse, gotten out swinging, as simple as that.
Riyad has always been more effective in tandem, be it with bat or ball. I've seen him provide key breakthroughs with the ball when someone's creating sustained pressure from the other end. Bat in hand, he can do the same once someone from the other end can help him play his natural game. His natural game means settling in with overly defensive shots, painfully finding the gap every now and then, and about 30 or so balls later, finding the boundary safely. He values his wicket and should bat further up the order in tests.
On a side note, I don't see how Ashrafool can be considered "talented" without flaunting our ignorance of the concept. Someone who doesn't learn from his all-too-often unforced, careless batting errors after more than 100 moronic dismissals, cannot be called anything other than a moron, no matter how much potential he has. It takes talent to apply that potential in the middle when it counts, no matter how hard you work in the nets.
"O people, we created you from the same male and female, and rendered you distinct peoples and tribes, that you may recognize one another. The best among you in the sight of GOD is the most righteous. GOD is Omniscient, Cognizant." (49:13)