Fix crash when starting OpenStudio App

Check to make sure there is data in the JobErrors table before executing the duplicate JobError cleanup process.

@macumber I checked this on my currently open branch and hand merged it. Please verify if you have a build of develop ready to go.