Fix state bugs (ready)

Fixes bugs:
- GLIM-102 - Empty state should hide data range and x-axis.
- GLIM-86 - Setting state() before render throws exception.