Hi there. I believe this error is solely caused by embedding dh_doxygen into the imagemagick source package instead of using the dh_doxygen helper from the doxygen package.
I tried a build with the debian/scripts/dh_doxygen call in debian/rules replaced by /usr/bin/dh_doxygen and it succeeded. Cheers, Sven