Fix broken builds with disabled documentation.