Chemical reactivity of ultracold polar molecules: investigation of ${\rm H} + {\rm HCl}$ and ${\rm H} + {\rm DCl}$ collisions