@bdrewery reported a concern with mandoc db generation in D10482. I am not sure exactly what happened, but it does appear that the logic will fail if there is no existing mandoc.db to compare against with find -newer.
$ test -z "$(find . -type f -newer /does/not/exist)" && echo true find: /does/not/exist: No such file or directory true