Fix bug in get_metadata_value where it wasn't properly falling back to project level attributes.