added a check before looking for resource for running task - to be sure that resource_id is already set
added a check before looking for resource for running task - to be sure that resource_id is already set

soichih/sca-wf,soichih/sca-wf,soichih/sca-portal,soichih/sca-portal,soichih/sca-portal,soichih/sca,soichih/sca,soichih/workflow,soichih/sca-wf,soichih/workflow,soichih/sca,soichih/workflow