use the reports render method to render the report if possible. Doing this check we make sure always the report class is used to render the report