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 
May we just declare the value here, and move this call below to line 78? This groups the value setting with its usage.