Missing an 

```else MWBase::Environment::get().getWindowManager()->setSneakVisibility(false)```

here.