Add macro for asserting DOC_SUBPATH is set

The builder assert-env-doc_subpath let us ensure DOC_SUBPATH is
available. It is set by Zuul and used when generating documentation:

https://www.mediawiki.org/wiki/CI/Documentation_generation

Change-Id: Ibceb6fc700848283acc96a80b4adeae367a85cc0