makefile: Move checks around for documentation dependencies.

The patch speaks for itself.

Mainly it adds the `-z "$(DBHTMLXSL)"` check, so I don't get unexplainable errors.