UC-1964: Restore not working in a HA setup

-check for master node to be mongo primary, show error msg if not found