fix: [view] Check condition to render part of the views

This avoids some errors
3 jobs for topic/default/error_in_view in 2 minutes and 43 seconds (queued for 30 seconds)
Status Name Job ID Coverage
  Deps
passed Deps #70191

00:01:14

 
  Lint
passed Lint #70192

00:00:32

 
  Build
passed CanBuild #70193

00:00:56