YARN-2937. Fixed new findbugs warnings in hadoop-yarn-nodemanager. Contributed by Varun Saxena.

(cherry picked from commit 41a548a916d4248164cb9495320f123ec215d70e)