Fix script for the data explorer docs

@AtnNn -- that provides a better error when the `io` field is missing in a command.

In this case, the `io` field for `r.random` was missing.