Fixed a bug in the "get_tables" method

...which would trigger warning messages; thanks to Stefan L for
reporting