Allow resource_by_refid returning resumed resources

Resumed resources aren't returned by resource_by_refid, which causes problem
after a stack is resumed.

Fixes bug #1227032

Change-Id: I87893a04bb267e1b42b55f3c60c22a6268ae4464
Merge "Allow resource_by_refid returning resumed resources"