If `ALTER TABLE ... SET ACCESS METHOD DEFAULT` is used, the name of the
table access method is NULL in the `AlterTableCmd`, so add checks that
the name is not null before using it.
Function `hypercore_alter_access_method_finish` expects a chunk, but
could be called with a non-chunk, so checking that the relid is a
chunk.