build: fix Meson build with docs=auto
When docs=auto and doxygen isn't found, the build fails with:
doc/meson.build:28:0: ERROR: Tried to use not-found external program in "command"
Instead of always enabling docs when docs=auto, only do so when doxygen is found.