Wrapping core's Table::get_name() method for internal use.

@bmunkholm @emanuelez @cmelchior 
`TABLE_VALID` does and the `return NULL` is use to keep the compiler happy.