Be more defensive in the `unwrap` function
Fixes #35