index: fix stash usage for Mojolicious 5.x