Fixes to restore documentation building

Sphinx was broken again because:
* `astropy` modules needed to be mocked
* There was no handling if the ANA extension was missing (which Sphinx does not build)