fix error for sql_report post type
fix: Notice: Trying to get property of non-object in /var/www/wp-content/plugins/casepress/cp-components/cp-sql_reports/sql_reports.php on line 16