YARN-1094. Fixed a blocker with RM restart code because of which RM crashes when try to recover an existing app. Contributed by Vinod Kumar Vavilapalli. svn merge --ignore-ancestry -c 1517215 ../../trunk/