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.

  Also, added are 2 data integrity checks:
    - radio question: num data rows <= num choices
    - checkbox question: num data rows <= 2**(num choices)