YARN-1107. Fixed a bug in ResourceManager because of which RM in secure mode fails to restart. Contributed by Omkar Vinit Joshi. svn merge --ignore-ancestry -c 1520726 ../../trunk/