Fixed error reporting for empty views