Ticket 50627 - Support platforms without pytest_html
Bug Description: On systems without pytest_html the conftest
hook would cause tests to fail
Fix Description: If pytest_html is none, don't write the report
to avoid the failure.
Fixes: https://pagure.io/389-ds-base/issue/50627
Author: William Brown <william@blackhats.net.au>
Review by: vashirov