fix incorrect arg order
Merge pull request #3039 from dimagi/app_resource

Minor improvement to application resource