core: Check for attrV being nil before dereference
core: Check for attrV being nil before dereference

This can be an issue with unset computed fields.

Fixes #8815.

hashicorp/terraform-plugin-sdk,hashicorp/terraform-plugin-sdk