allow tables without prefix - check if prefix is empty

Currently it is not possible to use an empty prefix.