empty_on_cran: Reduce a check to the empty string on CRAN
Description
In testing, we don't want to rely on exact error messages or stdout on CRAN
for third-party packages, since this would complicate the release process for
dependencies of {precommit}.