Prevent restore if `onBeforeRestore` returns false

fix for https://github.com/simsalabim/sisyphus/issues/55