Issue #2226695 by sjbassett: Error with empty views table