[api] another place to avoid a crash when getting no build time