Apparently `history` can exist but not `history.state`

For #418