CFY-1222 bug fix, properly handle error and result when using non graph api in local tasks
CFY-1222 bug fix, properly handle error and result when using non graph api in local tasks

codilime/cloudify-plugins-common,codilime/cloudify-plugins-common,geokala/cloudify-plugins-common,cloudify-cosmo/cloudify-plugins-common,xdegenne/cloudify-plugins-common,cloudify-cosmo/cloudify-plugins-common,isaac-s/cloudify-plugins-common,codilime/cloudify-plugins-common,isaac-s/cloudify-plugins-common,isaac-s/cloudify-plugins-common,cloudify-cosmo/cloudify-plugins-common