Add a check for empty query results when picking a random post.