Executes block if this is an ApiResult.Error, otherwise returns ApiResult.value will result in NotFinishedException