build: Fix gtk-doc build failure when native backend is disabled

https://bugzilla.gnome.org/show_bug.cgi?id=731521