avoid Uncaught TypeError: Cannot read property 'type' of undefined, when tables have columns that are not defined in models