Changes the flow of logic for db_objects undelete method.