Fix startup with no state.

Bug introduced in previous patch.