Bad table name on master_create_distributed_table()

This fix handles when `master_create_distributed_table` is called with
a an index as the first argument. More generally, it is called with
a relation that is not ordinary table or foreign table.

closes #13