[BUG #7198] Don't set the state property before applying the state hash to the iframe