Fix for an user reported bug (tbl can be None)
Minor patch