Fix for randomization data returned from analytics API

  The issue this fixes is when the question is not currently set to randomization
  but was set at some time in its history.

  This is handled by now displaying an error message for this situation.
maybe change the function name here to more clearly indicate that it has a side effect, which is to set `message_by_part`