Bug 1047783 - Make sure error don't get ignored in the stateManager promise chain