See https://commons.wikimedia.org/wiki/Foo for example:
This entity does not exist. You can search the related logs to find out where it went.
This should be using the default message for this purpose, which is about a regular wiki page, not a Wikidata entity.
This is likely due to technical debt in the WikibaseRepo.