YARN-2617. Fixed ApplicationSubmissionContext to still set resource for backward compatibility. Contributed by Wangda Tan.

(cherry picked from commit e532ed8faa8db4b008a5b8d3f82b48a1b314fa6c)