YARN-2789. Re-instated the NodeReport.newInstance private unstable API modified in YARN-2698 so that tests in YARN frameworks don't break. Contributed by Wangda Tan.

(cherry picked from commit 6ce32f593bff6788084ce9bc1e11ade74ed3dbaf)