EZP-20992: Fix wrong scope in contentViewGenerateError