updated safe_save function to properly check for outputs_computed state. Fixes #203