AMBARI-6242. Error during ambari-server upgradestack command (aonishuk)