I know this is probably not the best solution, but it actually makes the whole feature work for HA and non HA nodes.
I would change it if someone has a better idea on how to test if a node is HA enabled.