This fixes #8382.  I moved a call to Timesheet.setComplete to the area that makes sure that Timesheet exists.