YARN-2459. RM crashes if App gets rejected for any reason and HA is enabled. Contributed by Jian He