Release preparation: Fix out-of-bounds indexing in context of shut wells

This commit corrects a latent issue in the initialisation of an `Opm::WellState` object through its `init()` method.  In particular, the code did not account for the possibility, albeit remote, of there being shut wells among the well set represented by `wells`.  Shut wells would lead to an out-of-bounds index (`-1`).