CDAP-693 handle case where webapp address is not explicitly given
in HA mode for the resource manager.
CDAP-983 move set out of if.
Merge pull request #807 from caskdata/hotfix/CDAP-983-resource-metrics-fix-again

CDAP-693 handle case where webapp address is not explicitly given