fixed a segfault when opening views for tables that do not allow the creation of new records