Fix up hash building from resource instance. Only store things with proper value