Please note that the default for this is to look at all jobs including disabled jobs. In order to look at only enabled jobs please remove that commented out clause.
Resolution
Run the query in Management Studio (or other SQL Server UI) to see the affected jobs and amend them to have the correct owner.