mw doc only triggered for master/release branches

There is no point in triggering Doxygen for wmf branches, the
tools/mwcore-docgen.sh script filter them out anyway and make the job to
fail.

bug: 50325
Change-Id: Iaf0daffb30e1ae002d6f3ae608c34c48daab0d1f