Core: now using has_value() function in AResource::getResources method to be able to get resources with id = 0.