fix (Model.php) throw error if no such table exists