Fix invariant for getInitialStateAsync
release 0.3.1