[resource] fixed case of empty data in resource.invoke
Merge branch 'master' of github.com:ahdinosaur/resource