Fix dive saving in offline mode.

Signed-off-by: Andrey Zhdanov <andrjufka@gmail.com>