Fix resource bug in MesosJobFramework.buildTask()