[MH-208] Fixes console error for nonexistent anchors & support clicking on in-page hashes.
[MH-208] Fixes console error for nonexistent anchors & support clicking on in-page hashes.

ResearchSoftwareInstitute/MyHPOM,ResearchSoftwareInstitute/MyHPOM,ResearchSoftwareInstitute/MyHPOM,ResearchSoftwareInstitute/MyHPOM,ResearchSoftwareInstitute/MyHPOM